<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>QuarkJS API Reference - DisplayObject</title>

		<link href="../../css/bootstrap.css" rel="stylesheet">
	    <style type="text/css">
	      body {
	        padding-top: 60px;
	        padding-bottom: 40px;
	      }
	      .sidebar-nav {
	        padding: 9px 0;
	      }
	      .hero-unit {
	        padding: 30px;
	      }
	      .hero-unit p {
	        font-size: 16px;
	      }
	      .hero-unit li {
	        font-size: 16px;
	        line-height: 24px;
	      }
	      .fixedFont{
	      	font-family: courier;
	      }
	    </style>
	    <link href="../../css/bootstrap-responsive.css" rel="stylesheet">

	</head>

	<body>
		<div class="navbar navbar-fixed-top">
		  <div class="navbar-inner">
		    <div class="container-fluid">
		      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </a>
		      <a class="brand" href="#">QuarkJS - An HTML5 Game Framework</a>
		      <div class="nav-collapse">
		        <ul class="nav">
		          <li><a href="../../index.html">首页</a></li>
		          <li><a href="http://github.com/quark-dev-team/quarkjs" target="_blank">源码下载</a></li>
		          <li class="active"><a href="../index.html">API文档</a></li>
		          <li><a href="../../tutorial.html">使用指南</a></li>
		          <li><a href="../../demo.html">作品演示</a></li>
		        </ul>
		      </div>
		    </div>
		  </div>
		</div>

		<div class="container-fluid">
      		<div class="row-fluid">
      			<div class="span3">
      				<div class="well sidebar-nav">
<ul class="nav nav-list">
  <li class="nav-header">类列表</li>
  
	<li></li>
	
	<li><a href="../symbols/Audio.html">Audio</a></li>
	
	<li><a href="../symbols/Bitmap.html">Bitmap</a></li>
	
	<li><a href="../symbols/Button.html">Button</a></li>
	
	<li><a href="../symbols/CanvasContext.html">CanvasContext</a></li>
	
	<li><a href="../symbols/Context.html">Context</a></li>
	
	<li><a href="../symbols/DisplayObject.html">DisplayObject</a></li>
	
	<li><a href="../symbols/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
	
	<li><a href="../symbols/DOMContext.html">DOMContext</a></li>
	
	<li><a href="../symbols/Drawable.html">Drawable</a></li>
	
	<li><a href="../symbols/EventDispatcher.html">EventDispatcher</a></li>
	
	<li><a href="../symbols/EventManager.html">EventManager</a></li>
	
	<li><a href="../symbols/Graphics.html">Graphics</a></li>
	
	<li><a href="../symbols/ImageLoader.html">ImageLoader</a></li>
	
	<li><a href="../symbols/MovieClip.html">MovieClip</a></li>
	
	<li><a href="../symbols/Quark.html">Quark</a></li>
	
	<li><a href="../symbols/Stage.html">Stage</a></li>
	
	<li><a href="../symbols/Text.html">Text</a></li>
	
	<li><a href="../symbols/Timer.html">Timer</a></li>
	
	<li><a href="../symbols/Tween.html">Tween</a></li>
	 
</ul>
</div>
      			</div>
      			<div class="span9">

      				<!-- ============================== class title ============================ -->
      				<h1 style="color:#333;">
  					
					Class DisplayObject
      				</h1><br/>

          			<!-- ============================== class summary ========================== -->			
					<p class="description">
						
						<span style="display:block;margin-bottom:5px;">继承自 
							<a href="../symbols/EventDispatcher.html">EventDispatcher</a>.</span>
						
					
						DisplayObject类是可放在舞台上的所有显示对象的基类。DisplayObject类定义了若干显示对象的基本属性。渲染一个DisplayObject其实是进行若干变换后再渲染其drawable对象。
						
					</p>

					<!-- ============================== constructor summary ==================== -->			
					
					<h3 style="margin-bottom:6px;">构造函数概览</h3>
					<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the constructor documented in the class DisplayObject.">
						<thead>
							<tr>
								<th scope="col" style="width:10%;"></th>
								<th scope="col">说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="attributes">&nbsp;</td>
								<td class="nameDescription" >
									<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#constructor">DisplayObject</a></b>()
									</div>
									<div class="description">构造函数.</div>
								</td>
							</tr>
						</tbody>
					</table>
					

					<!-- ============================== properties summary ===================== -->
					
					
						
						<h3 style="margin-bottom:6px;">属性概览</h3>
						<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the fields documented in the class DisplayObject.">
							<thead>
								<tr>
									<th scope="col" style="width:10%;"></th>
									<th scope="col">说明</th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#alpha">alpha</a></b>
										</div>
										<div class="description">DisplayObject对象的透明度。取值范围为0-1，默认为1。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#eventEnabled">eventEnabled</a></b>
										</div>
										<div class="description">指示DisplayObject对象是否接受交互事件，如mousedown，touchstart等。默认为true。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#height">height</a></b>
										</div>
										<div class="description">DisplayObject对象的高。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#id">id</a></b>
										</div>
										<div class="description">DisplayObject对象唯一标识符id。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#mask">mask</a></b>
										</div>
										<div class="description">指示DisplayObject对象的遮罩对象。当上下文为DOMContext时暂时只支持webkit内核浏览器。默认为null。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#name">name</a></b>
										</div>
										<div class="description">DisplayObject对象的名称。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#parent">parent</a></b>
										</div>
										<div class="description">DisplayObject对象的父容器。只读属性。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#polyArea">polyArea</a></b>
										</div>
										<div class="description">指示DisplayObject对象的多边形碰撞区域。默认为null，即使用对象的外包围矩形。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#regX">regX</a></b>
										</div>
										<div class="description">DisplayObject对象的注册点（中心点）的x轴坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#regY">regY</a></b>
										</div>
										<div class="description">DisplayObject对象的注册点（中心点）的y轴坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#rotation">rotation</a></b>
										</div>
										<div class="description">DisplayObject对象的旋转角度。默认为0。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#scaleX">scaleX</a></b>
										</div>
										<div class="description">DisplayObject对象在x轴上的缩放值。取值范围为0-1。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#scaleY">scaleY</a></b>
										</div>
										<div class="description">DisplayObject对象在y轴上的缩放值。取值范围为0-1。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#transformEnabled">transformEnabled</a></b>
										</div>
										<div class="description">指示DisplayObject对象是否执行变换。默认为false。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#useHandCursor">useHandCursor</a></b>
										</div>
										<div class="description">指示DisplayObject对象是否支持手型的鼠标光标。默认为false。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#visible">visible</a></b>
										</div>
										<div class="description">指示DisplayObject对象是否可见。默认为true。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#width">width</a></b>
										</div>
										<div class="description">DisplayObject对象的宽。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#x">x</a></b>
										</div>
										<div class="description">DisplayObject对象相对父容器的x轴坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										<b><a href="../symbols/DisplayObject.html#y">y</a></b>
										</div>
										<div class="description">DisplayObject对象相对父容器的y轴坐标。</div>
									</td>
								</tr>
							
							</tbody>
						</table>
						
						
						
						<dl class="inheritsList">
						
						</dl>
						
					

					<!-- ============================== methods summary ======================== -->
					
						
						
						<h3 style="margin-bottom:6px;">方法概览</h3>
						<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the methods documented in the class DisplayObject.">
							<thead>
								<tr>
									<th scope="col" style="width:10%;"></th>
									<th scope="col">说明</th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getBounds">getBounds</a></b>()
										</div>
										<div class="description">返回DisplayObject对象在舞台全局坐标系内的矩形区域以及所有顶点。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getCurrentHeight">getCurrentHeight</a></b>()
										</div>
										<div class="description">获得DisplayObject对象变形后的高度。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getCurrentWidth">getCurrentWidth</a></b>()
										</div>
										<div class="description">获得DisplayObject对象变形后的宽度。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getDrawable">getDrawable</a></b>(context)
										</div>
										<div class="description">获得可绘制对象实体，如Image或Canvas等其他DOM对象。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getStage">getStage</a></b>()
										</div>
										<div class="description">获得DisplayObject对象的舞台引用。如未被添加到舞台，则返回null。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#getState">getState</a></b>(propName)
										</div>
										<div class="description">获得DisplayObject对象保存的状态列表中的指定的属性状态。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#globalToLocal">globalToLocal</a></b>(x, y)
										</div>
										<div class="description">将x和y指定的点从舞台（全局）坐标转换为显示对象的（本地）坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#hitTestObject">hitTestObject</a></b>(object, usePolyCollision)
										</div>
										<div class="description">计算DisplayObject对象的包围矩形，以确定由object参数指定的显示对象是否与其相交。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#hitTestPoint">hitTestPoint</a></b>(x, y, usePolyCollision)
										</div>
										<div class="description">计算DisplayObject对象的包围矩形，以确定由x和y参数指定的点是否在其包围矩形之内。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#localToGlobal">localToGlobal</a></b>(x, y)
										</div>
										<div class="description">将x和y指定的点从显示对象的（本地）坐标转换为舞台（全局）坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#localToTarget">localToTarget</a></b>(x, y, target)
										</div>
										<div class="description">将x和y指定的点从显示对象的（本地）坐标转换为指定对象的坐标系里坐标。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#propChanged">propChanged</a></b>(prop)
										</div>
										<div class="description">比较DisplayObject对象的当前状态和最近一次保存的状态，返回指定属性中是否发生改变。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#render">render</a></b>(context)
										</div>
										<div class="description">DisplayObject对象渲染接口，可通过覆盖此方法实现对象的渲染。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#saveState">saveState</a></b>(list)
										</div>
										<div class="description">保存DisplayObject对象的状态列表中的各种属性状态。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#setDrawable">setDrawable</a></b>(drawable)
										</div>
										<div class="description">设置可绘制对象，默认是一个Image对象，可通过覆盖此方法进行DOM绘制。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#toString">toString</a></b>()
										</div>
										<div class="description">返回DisplayObject对象的全路径的字符串表示形式，方便debug。如Stage1.Container2.Bitmap3。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/DisplayObject.html#update">update</a></b>(timeInfo)
										</div>
										<div class="description">对象数据更新接口，可通过覆盖此方法实现对象的数据更新。</div>
									</td>
								</tr>
							
							</tbody>
						</table>
						
						
						
						<dl class="inheritsList">
						<dt>从类 <a href="../symbols/EventDispatcher.html">EventDispatcher</a> 继承的方法: </dt><dd><a href="../symbols/EventDispatcher.html#addEventListener">addEventListener</a>, <a href="../symbols/EventDispatcher.html#dispatchEvent">dispatchEvent</a>, <a href="../symbols/EventDispatcher.html#hasEventListener">hasEventListener</a>, <a href="../symbols/EventDispatcher.html#removeAllEventListeners">removeAllEventListeners</a>, <a href="../symbols/EventDispatcher.html#removeEventListener">removeEventListener</a>, <a href="../symbols/EventDispatcher.html#removeEventListenerByType">removeEventListenerByType</a></dd>
						</dl>
						
					
					<!-- ============================== events summary ======================== -->
					

					<!-- ============================== constructor details ==================== -->		
					
					<div class="details"><a name="constructor"> </a>
						<h3 style="margin-bottom:6px;">构造函数详细信息</h3>
						
						<div class="fixedFont">
								<b>DisplayObject</b>()
						</div>
						
						<div class="description">
							构造函数.
							
						</div>
						
						
						
						
							
							
							
							
							
							
							

					</div>
					<hr/>
					

					<!-- ============================== field details ========================== -->		
					
						<h3 style="margin-bottom:6px;">属性详细信息</h3>

						
							<a name="alpha"> </a>
							<div class="fixedFont">
							
							
							<b>alpha</b>
							
							</div>
							<div class="description">
								DisplayObject对象的透明度。取值范围为0-1，默认为1。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="eventEnabled"> </a>
							<div class="fixedFont">
							
							
							<b>eventEnabled</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象是否接受交互事件，如mousedown，touchstart等。默认为true。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="height"> </a>
							<div class="fixedFont">
							
							
							<b>height</b>
							
							</div>
							<div class="description">
								DisplayObject对象的高。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="id"> </a>
							<div class="fixedFont">
							
							
							<b>id</b>
							
							</div>
							<div class="description">
								DisplayObject对象唯一标识符id。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="mask"> </a>
							<div class="fixedFont">
							
							
							<b>mask</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象的遮罩对象。当上下文为DOMContext时暂时只支持webkit内核浏览器。默认为null。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="name"> </a>
							<div class="fixedFont">
							
							
							<b>name</b>
							
							</div>
							<div class="description">
								DisplayObject对象的名称。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="parent"> </a>
							<div class="fixedFont">
							
							
							<b>parent</b>
							
							</div>
							<div class="description">
								DisplayObject对象的父容器。只读属性。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="polyArea"> </a>
							<div class="fixedFont">
							
							
							<b>polyArea</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象的多边形碰撞区域。默认为null，即使用对象的外包围矩形。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="regX"> </a>
							<div class="fixedFont">
							
							
							<b>regX</b>
							
							</div>
							<div class="description">
								DisplayObject对象的注册点（中心点）的x轴坐标。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="regY"> </a>
							<div class="fixedFont">
							
							
							<b>regY</b>
							
							</div>
							<div class="description">
								DisplayObject对象的注册点（中心点）的y轴坐标。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="rotation"> </a>
							<div class="fixedFont">
							
							
							<b>rotation</b>
							
							</div>
							<div class="description">
								DisplayObject对象的旋转角度。默认为0。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="scaleX"> </a>
							<div class="fixedFont">
							
							
							<b>scaleX</b>
							
							</div>
							<div class="description">
								DisplayObject对象在x轴上的缩放值。取值范围为0-1。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="scaleY"> </a>
							<div class="fixedFont">
							
							
							<b>scaleY</b>
							
							</div>
							<div class="description">
								DisplayObject对象在y轴上的缩放值。取值范围为0-1。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="transformEnabled"> </a>
							<div class="fixedFont">
							
							
							<b>transformEnabled</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象是否执行变换。默认为false。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="useHandCursor"> </a>
							<div class="fixedFont">
							
							
							<b>useHandCursor</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象是否支持手型的鼠标光标。默认为false。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="visible"> </a>
							<div class="fixedFont">
							
							
							<b>visible</b>
							
							</div>
							<div class="description">
								指示DisplayObject对象是否可见。默认为true。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="width"> </a>
							<div class="fixedFont">
							
							
							<b>width</b>
							
							</div>
							<div class="description">
								DisplayObject对象的宽。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="x"> </a>
							<div class="fixedFont">
							
							
							<b>x</b>
							
							</div>
							<div class="description">
								DisplayObject对象相对父容器的x轴坐标。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name="y"> </a>
							<div class="fixedFont">
							
							
							<b>y</b>
							
							</div>
							<div class="description">
								DisplayObject对象相对父容器的y轴坐标。
								
								
							</div>
							
							

								
								
								
								

							
						
						<hr/>
					

					<!-- ============================== method details ========================= -->		
					
						<h3 style="margin-bottom:6px;">方法详细信息</h3>

						
							<a name="getBounds"> </a>
							<div class="fixedFont">
							
							<span class="light">{Object}</span>
							<b>getBounds</b>()
							
							</div>
							<div class="description">
								返回DisplayObject对象在舞台全局坐标系内的矩形区域以及所有顶点。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 返回显示对象的矩形区域。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="getCurrentHeight"> </a>
							<div class="fixedFont">
							
							<span class="light">{Number}</span>
							<b>getCurrentHeight</b>()
							
							</div>
							<div class="description">
								获得DisplayObject对象变形后的高度。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Number}</span> 返回对象变形后的高度。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="getCurrentWidth"> </a>
							<div class="fixedFont">
							
							<span class="light">{Number}</span>
							<b>getCurrentWidth</b>()
							
							</div>
							<div class="description">
								获得DisplayObject对象变形后的宽度。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Number}</span> 返回对象变形后的宽度。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="getDrawable"> </a>
							<div class="fixedFont">
							
							
							<b>getDrawable</b>(context)
							
							</div>
							<div class="description">
								获得可绘制对象实体，如Image或Canvas等其他DOM对象。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/Context.html">Context</a>}</span> <b>context</b>
											
										</dt>
										<dd>渲染上下文。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name="getStage"> </a>
							<div class="fixedFont">
							
							<span class="light">{<a href="../symbols/Stage.html">Stage</a>}</span>
							<b>getStage</b>()
							
							</div>
							<div class="description">
								获得DisplayObject对象的舞台引用。如未被添加到舞台，则返回null。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{<a href="../symbols/Stage.html">Stage</a>}</span> 返回对象的舞台。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="getState"> </a>
							<div class="fixedFont">
							
							
							<b>getState</b>(propName)
							
							</div>
							<div class="description">
								获得DisplayObject对象保存的状态列表中的指定的属性状态。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{String}</span> <b>propName</b>
											
										</dt>
										<dd>要获取的属性状态名称。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd>返回指定属性的最后一次保存状态值。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="globalToLocal"> </a>
							<div class="fixedFont">
							
							<span class="light">{Object}</span>
							<b>globalToLocal</b>(x, y)
							
							</div>
							<div class="description">
								将x和y指定的点从舞台（全局）坐标转换为显示对象的（本地）坐标。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>x</b>
											
										</dt>
										<dd>显示对象的全局x轴坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>y</b>
											
										</dt>
										<dd>显示对象的全局y轴坐标。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 返回转换后的本地坐标对象。格式如：{x:10, y:10}。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="hitTestObject"> </a>
							<div class="fixedFont">
							
							<span class="light">{Boolean}</span>
							<b>hitTestObject</b>(object, usePolyCollision)
							
							</div>
							<div class="description">
								计算DisplayObject对象的包围矩形，以确定由object参数指定的显示对象是否与其相交。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/DisplayObject.html">DisplayObject</a>}</span> <b>object</b>
											
										</dt>
										<dd>指定检测碰撞的显示对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>usePolyCollision</b>
											
										</dt>
										<dd>指定是否采用多边形碰撞。默认为false。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Boolean}</span> 相交返回true，否则返回false。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="hitTestPoint"> </a>
							<div class="fixedFont">
							
							<span class="light">{Number}</span>
							<b>hitTestPoint</b>(x, y, usePolyCollision)
							
							</div>
							<div class="description">
								计算DisplayObject对象的包围矩形，以确定由x和y参数指定的点是否在其包围矩形之内。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>x</b>
											
										</dt>
										<dd>指定碰撞点的x坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>y</b>
											
										</dt>
										<dd>指定碰撞点的y坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>usePolyCollision</b>
											
										</dt>
										<dd>指定是否采用多边形碰撞。默认为false。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Number}</span> 在包围矩形之内返回1，在边界上返回0，否则返回-1。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="localToGlobal"> </a>
							<div class="fixedFont">
							
							<span class="light">{Object}</span>
							<b>localToGlobal</b>(x, y)
							
							</div>
							<div class="description">
								将x和y指定的点从显示对象的（本地）坐标转换为舞台（全局）坐标。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>x</b>
											
										</dt>
										<dd>显示对象的本地x轴坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>y</b>
											
										</dt>
										<dd>显示对象的本地y轴坐标。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 返回转换后的全局坐标对象。格式如：{x:10, y:10}。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="localToTarget"> </a>
							<div class="fixedFont">
							
							<span class="light">{Object}</span>
							<b>localToTarget</b>(x, y, target)
							
							</div>
							<div class="description">
								将x和y指定的点从显示对象的（本地）坐标转换为指定对象的坐标系里坐标。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>x</b>
											
										</dt>
										<dd>显示对象的本地x轴坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>y</b>
											
										</dt>
										<dd>显示对象的本地y轴坐标。</dd>
									
										<dt>
											<b>target</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 返回转换后指定对象的本地坐标对象。格式如：{x:10, y:10}。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="propChanged"> </a>
							<div class="fixedFont">
							
							
							<b>propChanged</b>(prop)
							
							</div>
							<div class="description">
								比较DisplayObject对象的当前状态和最近一次保存的状态，返回指定属性中是否发生改变。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>prop</b>
											
										</dt>
										<dd>可以是单个或多个属性参数。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd>属性改变返回true，否则返回false。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="render"> </a>
							<div class="fixedFont">
							
							
							<b>render</b>(context)
							
							</div>
							<div class="description">
								DisplayObject对象渲染接口，可通过覆盖此方法实现对象的渲染。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/Context.html">Context</a>}</span> <b>context</b>
											
										</dt>
										<dd>渲染上下文。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name="saveState"> </a>
							<div class="fixedFont">
							
							
							<b>saveState</b>(list)
							
							</div>
							<div class="description">
								保存DisplayObject对象的状态列表中的各种属性状态。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Array}</span> <b>list</b>
											
										</dt>
										<dd>要保存的属性名称列表。默认为null。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name="setDrawable"> </a>
							<div class="fixedFont">
							
							
							<b>setDrawable</b>(drawable)
							
							</div>
							<div class="description">
								设置可绘制对象，默认是一个Image对象，可通过覆盖此方法进行DOM绘制。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>drawable</b>
											
										</dt>
										<dd>要设置的可绘制对象。一般是一个Image对象。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name="toString"> </a>
							<div class="fixedFont">
							
							<span class="light">{String}</span>
							<b>toString</b>()
							
							</div>
							<div class="description">
								返回DisplayObject对象的全路径的字符串表示形式，方便debug。如Stage1.Container2.Bitmap3。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{String}</span> 返回对象的全路径的字符串表示形式。如Stage1.Container2.Bitmap3。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name="update"> </a>
							<div class="fixedFont">
							
							<span class="light">{Boolean}</span>
							<b>update</b>(timeInfo)
							
							</div>
							<div class="description">
								对象数据更新接口，可通过覆盖此方法实现对象的数据更新。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>timeInfo</b>
											
										</dt>
										<dd>对象更新所需的时间信息。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Boolean}</span> 更新成功返回true，否则为false。</dd>
									
									</dl>
								
								
								

							
						
					
					
					<!-- ============================== event details ========================= -->		
					


      			</div>
      		</div>

      		<hr>
      		<footer>
        		<p style="text-align:center;">&copy; QuarkJS Dev-Team 2012</p>
      		</footer>

      	</div>

		<script src="../../js/jquery.js"></script>
    	<script src="../../js/bootstrap.js"></script>

	</body>
</html>
